/**
 * Interview Api
 *
 * @date 2021-08-03
 * @author 逗号米
 */

import http from '@/api'

/**
 * 前缀
 *
 * @type {String}
 */
const prefix = `${http}/cms/company/interview`


/**
 * 首页
 *
 * @type {String}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {String}
 */
export const query: string = `${prefix}/query`

/**
 * 显示
 *
 * @param {Number} id
 * @return {String}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {String}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 企业会员面试
 *
 * @param {Number} uid
 * @return {String}
 */
export const getCompanyUserInterview = (uid: number): string => `${prefix}/company-user/${uid}`

/**
 * 招聘职位面试
 *
 * @param {Number} id
 * @return {String}
 */
export const getCompanyJobInterview = (id: number): string => `${prefix}/company-job/${id}`

/**
 * 个人会员收到面试
 *
 * @param {Number} uid
 * @return {String}
 */
export const getPersonalUserReceiveInterview = (uid: number): string => `${prefix}/personal-user/${uid}`

/**
 * 个人简历收到面试
 *
 * @param {Number} id
 * @return {String}
 */
export const getPersonalResumeReceiveInterview = (id: number): string => `${prefix}/personal-resume/${id}`

// /**
//  * 简历收到面试通知
//  *
//  * @param {Number} resumeId
//  * @return {String}
//  */
// export const resumeReceivedInterview = (resumeId: number): string => `${prefix}/resume/${resumeId}`
//
// /**
//  * 个人用户收到面试通知
//  *
//  * @param {Number} uid
//  * @return {String}
//  */
//  export const personalUserReceivedInterview = (uid: number): string => `${prefix}/personal-user/${uid}`